package com.easou.ps.main;

import java.net.InetSocketAddress;

import com.easou.ps.common.servicehandle.ServiceAddress;
import com.easou.ps.master.kit.ConfigFactory;
import com.easou.ps.master.query.qs.QSProxyFactory;

public class Initializer {
	public static void exec(){
		InetSocketAddress[] addrs = ConfigFactory.getSysConfig().getInetSocketAddresses("qs.servers");
		for (InetSocketAddress addr : addrs) {
			ServiceAddress address = new ServiceAddress(addr);
			QSProxyFactory.putServiceAddress(address);
		}
	}
}
